/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MYData.Entity.SystemModels;

namespace MYData.Entity.DomainModels
{
    [Table("tb_project_receivertype")]
    [Entity(TableCnName = "接受者类型表",TableName = "tb_project_receivertype")]
    public partial class tb_project_receivertype:BaseEntity
    {
        /// <summary>
       ///主键
       /// </summary>
       [Key]
       [Display(Name ="主键")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string id { get; set; } = Guid.NewGuid().ToString();

        /// <summary>
        ///接收类型 0 All 1 角色 2 部门
        /// </summary>
        [Display(Name ="接收类型 1 所有人 2 部门 3 角色")]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       public string receiverTypeId { get; set; } 

        /// <summary>
        ///接收者子类型 (/所有人/角色/部门 ID)
        /// </summary>
        [Display(Name ="接收者子类型 (/所有人/角色/部门 ID)")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string receiverTypeItem { get; set; }

        /// <summary>
        ///是否阅读（1是，0否）
        /// </summary>
        [Display(Name = "是否阅读（1是，0否）")]
        [Column(TypeName = "bool")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public bool recipientState { get; set; } = true;

        /// <summary>
        ///申报通知外键
        /// </summary>
        [Display(Name = "申报通知外键")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       public string declaremessageId { get; set; }

       
    }
}